﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sport_Shop.DAL;

namespace Sport_Shop
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                load_Menu();
        }

        private void load_Menu()
        {
            DataAccess da = new DataAccess();
            string sql = "SELECT MaLoai, TenLoai FROM LoaiSanPham";
            rpMenuSP.DataSource = da.GetDataTable(sql);
            rpMenuSP.DataBind();
        }
    }
}